package com.xltx.weibo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author liuyc
 * @ClassName WeiboProperties
 * @Description
 * @Date 2021/12/21 16:54
 */
@ConfigurationProperties(prefix = WeiboProperties.PREFIX)
@Component
public class WeiboProperties {

    /**
     * configuration prefix
     */
    public static final String PREFIX = "xltx.weibo";

    /**
     * appKey
     */
    private String appKey;

    /**
     * appSecret
     */
    private String appSecret;

    /**
     * Authorization callback page
     */
    private String redirectUri;

    /**
     * Cancel authorization callback page
     */
    private String cancelUrl;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public String getCancelUrl() {
        return cancelUrl;
    }

    public void setCancelUrl(String cancelUrl) {
        this.cancelUrl = cancelUrl;
    }
}
